<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('website_configs', function (Blueprint $table) {
            $table->id();
            $table->string('label')->comment('名称');
            $table->string('key')->unique()->comment('key');
            $table->text('value')->nullable()->comment('值');
            $table->string('type')->nullable()->comment('类型');
            $table->string('remark')->nullable()->comment('备注');
            $table->string('group')->nullable()->comment('类型');
            $table->timestamps();
            $table->comment('网站设置表');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('website_configs');
    }
};
